<template>
  <div class="product-section">
    <div class="section-title">{{ title }}</div>
    <div class="product-grid">
      <ProductItem 
        v-for="(product, index) in products" 
        :key="index" 
        :product="product" 
      />
    </div>
  </div>
</template>

<script setup>
import ProductItem from './ProductItem.vue'

defineProps({
  title: {
    type: String,
    required: true
  },
  products: {
    type: Array,
    required: true
  }
})
</script>

<style lang="scss" scoped>
.product-section {
  margin-bottom: 20px;
  background-color: white;
  padding: 15px;
  border-radius: 2px;
  
  .section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 15px;
  }
}
</style> 